package com.linktrip.devicemanager.sms;

import java.io.UnsupportedEncodingException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author : CaineZhu E-mail:CaineZhu@me.com
 * @version : V1.0
 * @创建时间 ： 2017年3月31日 上午10:59:42
 * @类说明 : blablabla
 */
@Component
public class SMSTokenWorker {

	Logger logger = LoggerFactory.getLogger(SMSTokenWorker.class);

	@Scheduled(cron = "0 0 */1 * * ?")
	public void getSMSTokenWork() {
		try {
			SMSUtil.getToken();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		logger.warn("SMSTokenWorker .........");
	}

}
